package com.sooth.system.user.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import lombok.Data;

import java.sql.Types;

@Data
@Table("sys_user_post")
public class SysUserPost {

    /**
     * 用户ID
     */
    @Id
    @Column(value = "user_id", jdbcType = Types.BIGINT)
    private Long userId;
    /**
     * 角色ID
     */
    @Id
    @Column(value = "post_id", jdbcType = Types.BIGINT)
    private Long postId;

    public SysUserPost() {

    }

    public SysUserPost(Long userId, Long postId) {
        this.userId = userId;
        this.postId = postId;
    }
}
